public class Shop
{
    public static int clientCounter = 0;

    public synchronized void enter()
    {
        clientCounter += 1;
    }

    public synchronized void leave()
    {
        clientCounter -= 1;
        this.notifyAll();
    }
}
